Multifunction semiconductor storage device and a method for booting-up computer host

ABSTRACT

A semiconductor storage device connected to the host system through the general purpose interface, including a semiconductor storage media module ( 1 ) and a controller module ( 2 ), in which the controller module ( 2 ) consists of a general purpose interface control module ( 21 ), a microprocessor and control module ( 22 ). Various device class protocols can be realized at the interface application level of the semiconductor storage device, which makes it possible to simulate and realize the storage functions of various storage disks. One or a plurality of storage spaces are opened up in the semiconductor storage media and one or a plurality of storage disks are supported by the same device; furthermore, the device supports hot plug and play and it is removable.

BACKGROUND OF THE INVENTION

[0001] 1. Field of the Invention

[0002] The present invention relates to a multifunction semiconductor storage device using semiconductor storage media, in particular, a multifunction semiconductor memory device connected to the host computer via the general-purpose interface.

[0003] 2. Description of the Related Art

[0004] The semiconductor storage media is a semiconductor chip for storing data; the chip can receive writing commands and data and then write them into the memory chip. The chip can also receive external read commands and read the data stored on the chip and output the data. In addition, the chip also supports other commands such as erasure and resetting commands. These kinds of semiconductor storage devices of this kind include flash memory, EEPROM, FRAM, DRAM, SRAM, SDRAM or MRAM but not are restricted to them. Compared with conventional magnetic and optic memory devices, the present semiconductor memory device has the features of small volume, less weight, large storage capacity, and higher reliability and low power consumption. In addition, it does not require any specific mechanism to drive it. For example, in Chinese patent No. ZL 00114081.7 “Full Electronic External Flash Memory Technique and Device”, it discloses an external memory device using a flash memory device, wherein a semiconductor storage media and general purpose interface are used so as to realize external removable disk without external drive power supply; it supports hot dock/undock and plug-and-play function and it is not necessary to turn off the computer when doing plug and play. Furthermore, the removable memory has higher speed of data access and larger capacity than a floppy disk. In addition, it also has the advantages of small volume, easy portability, and indefectible. It can be applied to data processing systems supporting universal interface channels such as USB (universal serial bus) and IEEE1394.

[0005] Traditional floppy diskettes and floppy disk drives play less and less roles, especially after the above-mentioned external flash memory device had been invented, which makes it possible the exchange of data without floppy diskettes and floppy disk drives. However, computer users today still find that floppy diskettes and floppy disk drives are indispensable. One of the reasons is that the external flash memory disk before this invention above does not support the booting of the computer. When the computer system is infected with a virus or destroyed by the virus, an empty boot disk is needed to restart the computer through the BIOS (Basic Input and Output System). Desktop computers equip built in floppy disk drives in order to boot the system but it increases the volume and weight of the host system as well as the cost. Because of the bulkiness of the floppy disk drives, the majority of the ultra-thin laptop computers do not have built-in floppy disk drives so as to reduce the volume and weight of the computer. However, the users still have to install very expensive USB external floppy disk drives in order to boot the system and it increases the cost of the users and causes inconvenience in use.

[0006] Although the current flash memory devices such as DiskOnChip support the booting of the computer, they do not support hot plug in/out and are not removable because they are built in the computer. As a result, when the system software of the computer is destroyed by the virus, it cannot be restarted through DiskOnChip. Thus it is a restriction to the application of the device.

[0007] The current existing removable semiconductor storage devices can only be used on the driver software installed in the operating system of the computer but cannot be recognized and controlled by the BIOS of the computer, thus they cannot be used as the boot device of the system.

[0008] Most of the BIOS manufacturers have produced the BIOS capable of supporting the boot function of the external USB floppy disk drive, such as the BIOS of AWARD. Furthermore, many of the mainboard producers have adopted the above-mentioned BIOS, for example, ASUS motherboard, which lays the foundation for the large-scale use of the present invention.

SUMMARY OF THE INVENTION

[0009] In view of the deficiencies of the conventional storage devices, an object of the present invention is to provide a semiconductor storage device capable of simulating and realizing the functions of various storage disks as well as acting as the removable boot device of the computer system.

[0010] The present invention provide a multifunction semiconductor storage device capable of hot plug in/out and being removable connected to the host system through the general purpose interface, including a semiconductor storage media module and a controller module, wherein the controller module comprises a general purpose interface control module, a microprocessor and control module, said semiconductor storage device can realize the device class protocol of the floppy disk drive, simulate and implement the storing function of the floppy diskette working on the floppy disk drive, or realize the device class protocol of the CD-ROM drive, simulate and implement the storing function of the CD-ROM working on the CD-ROM drive, or realize the device class protocol of the ZIP disk, simulate and implement the storing function of the ZIP disk, or realize the device class protocol of the MO disk, simulate and implement the storing function of the MO disk.

[0011] The present invention further provides a method for booting-up computer using the multifunction semiconductor storage device, comprising the steps of: storing the boot program of the operating system and operating system programs into the multifunction semiconductor storage device; connecting the multifunction semiconductor storage device with the computer host system through the general purpose interface; identifying the general purpose interface, and controlling and reading/writing the multifunction semiconductor storage device based on BIOS after powered up the computer host system; and loading the boot program of the operating system and operating system programs stored in the multifunction semiconductor storage device to computer host system for achieving computer booting-up.

[0012] The protocols supported by the present semiconductor storage device are UFI protocol, SFF80201 protocol, SFF80701 protocol, SCSI Transparent Command Set protocol, Reduced Block Commands (RBC) T10 Project 1240-D protocol, ZIP disk protocol and MO protocol.

[0013] The semiconductor storage media module corresponds to a storage space or it can be divided into at least two storage spaces with each corresponding to a storage disk. Preferably, each of the storage spaces can be further divided into smaller spaces such as a data area for storing data and a special information area for storing a special information, in which the special information contains information related to the storage disk, the password and the digital signature of the user, and so on.

[0014] The semiconductor storage device according to the present invention can be recognized, controlled and accessed by the BIOS of the host system. The semiconductor storage media module can store the boot program of the operating system and the operating system programs. When the BIOS of the host computer platform is powered up, the system then loads the boot program of the operating system and the operating system programs from the semiconductor storage media module so as to realize the booting of the host system.

[0015] Preferably, in the semiconductor storage device according to the present invention, the semiconductor storage media module can store the driver program of the semiconductor storage device itself so as to realize the function of storing the driver program in itself.

[0016] Preferably, the semiconductor storage device according to the present invention further includes the write protect switch capable of offering physical protection to the semiconductor storage media module so as to preventing the contents from being over rewritten or erased. The write protect switch is electrically connected to the microprocessor and control module electrically.

[0017] Preferably, the semiconductor storage device according to the present invention further includes an LED indicator, which comprises one or more indicator parts, which can show the status of the semiconductor storage device. The LED indicator is electrically connected to the microprocessor and control module electrically.

[0018] In the semiconductor storage device according to the present invention, preferably, the controller module further comprises a buffer module, and the buffer module is a static random access memory (SRAM), and is electrically connected to the microprocessor and control module.

[0019] In the semiconductor storage device in the present invention, preferably, the semiconductor storage media module further comprises buffer area.

[0020] In the semiconductor storage device according to the present invention, preferably, the semiconductor storage media module further comprises a special information area for storing relevant data, password and the digital signature of the user. There can be no special information area in the device.

[0021] Preferably, the semiconductor storage device in the present invention further includes a storage disk selection switch for selecting at least a storage disk from all of the storage disks, so that the selected storage disk can be recognized, controlled and accessed by the host system.

[0022] The present invention provides a unique design so as to realize various device class protocols at the interface application level of the semiconductor storage device, and it can simulate and implement the various storage capacities of the storage disks. One or more storage spaces are provided in the semiconductor storage media, and one or more storage disk functions are supported in the same device. The present invention fully realizes the storage function of the external floppy drive and the floppy diskette using the general purpose interface, making it possible the entire substitution of floppy diskette and floppy disk drives. The semiconductor storage device in the present invention has a smaller size, light weight, a more stable performance and a higher reliability than those of the conventional semiconductor storage device, and it supports hot plug in/out and is removable. Accordingly, it is possible to make the host system being smaller in size and being portable. Furthermore, it effectively reduces the costs of the computer.

BRIEF DESCRIPTION OF THE DRAWINGS

[0023]FIG. 1 is a block diagram of the functions of the multi-purpose hardware used in the semiconductor storage device of the present invention;

[0024]FIG. 2 is a block diagram of the functions of the hardware using the USB interface and the flash memory in an embodiment according to the present invention;

[0025]FIG. 3 is a block diagram of the functions of the hardware using the IEEE1394 interface and the flash memory in an embodiment according to the present invention;

[0026]FIG. 4 shows the storage spaces allocation of the semiconductor storage device in an embodiment of the present invention;

[0027]FIG. 5 is a working flow chart of the embodiment shown in FIG. 2;

[0028]FIG. 6A, B, C, D shows the circuits schematics of the embodiment shown in FIG. 2 according the present invention, respectively.

DETAILED DESCRIPTION OF INVENTION

[0029]FIG. 1 is a block diagram of the functions of the multi-purpose hardware in an embodiment of the present invention. The semiconductor storage device is connected to the host computer via the general-purpose interface connecting cable or a connecting plug or through wireless connection mode. The semiconductor storage device comprises a semiconductor storage media module 1, a controller module 2, a write protect switch 3, a storage disk selection switch 4 and a LED indicator 5, wherein the controller module comprises a general purpose interface control module 21, a microprocessor and control module 22, and a buffer module 23.

[0030] The semiconductor storage media module 1 consists of one or more semiconductor storage media chips, the semiconductor storage media can be a flash memory, an EEPROM, FRAM, SRAM, DRAM, SDRAM and a MRAM but be not restricted to them, which is connected through the current addressing method for storing data. The semiconductor storage media module 1 corresponds to either one storage space or at least two storage spaces. The semiconductor storage media module 1 can store the driver program of the semiconductor storage device itself so as to realize the function of storing the driver program in itself.

[0031] The controller module 2 executes the initialization of the device, the control of the device, the initialization and control of the general purpose interface, the reception, the interpret and implementation of the commands sent from the host computer, the storage of the data to the semiconductor storage module 1 or the reading of the data from the semiconductor storage module 1 and the return of the executing result to the host system through the general purpose interface.

[0032] The general purpose interface control module 21 of the controller module 2 executes the connection with the host system, interprets, converts, controls and transmits the general purpose interface protocol. The general purpose interface can be either wired general purpose interface, including USB interface, IEEE1394 interface, or wireless general purpose interface, including Bluetooth interface, IrDA infrared interface, HomeRF interface, IEEE802.11a interface, IEEE802.11b interface but be not restricted to them.

[0033] The microprocessor and control module 22 initializes the general purpose interface control module 21, reads the status of the storage disk selection switch 4, determines the device class protocol implementing the floppy disk drive in accordance with the status of the storage disk selection switch 4, simulates and realizes the storage function of the floppy diskette working on the floppy disk drive; or it realizes the device class protocol of the hard disk, simulates and implements the storage function of the hard disk, or it realizes the device class protocol of the ZIP disk, simulates and implements the storage function of the ZIP disk, or it realizes the device class protocol of the MO disk, simulates and implements the storage function of the MO disk; furthermore, it can support hot plug in/out and is removable. The device class protocol supported by the storage disk is UFI protocol, SFF80201 protocol, SFF80701 protocol, SCSI Transparent Command Set protocol, Reduced Block Commands (RBC) T10 Project1240-D protocol, ZIP disk protocol, and MO disk protocol. The storage disk selection switch 4 can select one storage disk or more disks at the same time.

[0034] One and more storage disks in the device can store other driver program for the other storage disks of the device according to the present invention and realize the function of the storing itself driver program.

[0035] The microprocessor and control module 22 has the functions of:

[0036] a. initializing the semiconductor storage module and detecting the capacity, the manufacturer and the quantity of the storage chip in the semiconductor storage module;

[0037] b. receiving control commands based on the general purpose interface protocol and interpreting and executing the control commands and returning the results of executions to the host system through the general purpose interface;

[0038] c. receiving the simulated storage disk device class protocol, interpreting and executing related commands and returning the results of executions to the host system through general purpose interface; the related commands include reading data, writing data, the reading device information and reading device capacity;

[0039] d. receiving customized storage disk device class protocol, interpreting and executing corresponding commands and returning the results of executions to the host system through the general purpose interface; the corresponding commands include reading data, writing data, reading device information and read devicing capacity but be not restricted to them;

[0040] e. writing data into the semiconductor storage device or reading data from the semiconductor device; when reading data, the LED indicator blinks; when executing writing operation, the status of the write protect switch will be detected, and if the switch is in the status of the write-protection, writing request will be refused and the operation failure will be informed to the host computer;

[0041] f. converting the logical addresses in the storage device defined on the host system into actual the storage chip number and physical addresses of the storage chip;

[0042] g. when the connection between the microprocessor and control module 22 and the host system is established, the LED indicator is lighted on.

[0043] Since the difference between the storage modes of the semiconductor storage media, the buffer module 23 may be not a necessary device in certain cases; before the erasure of some data block of the semiconductor storage module, the buffer module is used to save the original data of the storage units and write the data into the buffer and finally write the data of the buffer back into the semiconductor storage media. The buffer module can be the SRAM and some part of the semiconductor storage module can also function as the buffer. As a result of the difference in the storage media, the operation of erasure can be optional.

[0044] The functions of the controller module 2 can be realized by using one or more integrated circuit chips, and the chips can be an ASIC, or an SOC or a monolithic processor with firmware.

[0045]FIG. 2 is the block diagram of the flash memory with the USB interface in an embodiment according to the present invention.

[0046] In the embodiment, the USB interface is used as the general-purpose interface and the flash memory is used as the semiconductor storage media. In the embodiment, a flash memory module 11, a controller module 20, a write protect switch 3, a storage disk selection switch 4, a LED indicator 5 and so on are included. The controller module includes a USB interface controller module 201, a microprocessor and control module 202 and an SRAM buffer module 203.

[0047] The flash memory module 11 is formed with either one or a plurality of semiconductor flash memory chips, and is connected in accordance to the addressing method for storing data.

[0048] The controller module 20 executes the initialization of the device, the control over the device, the initialization and the control of the USB interface, the reception of the commands and data from the host system, the interpretation and the execution of the commands from the host system, writing data to the flash memory module 11 or reading data from the flash memory module and returning the results of the execution to the host system through the USB interface.

[0049] The USB interface control module 201 in the controller module establishes a USB connection with the host system that interprets, converts, controls and transmits the USB protocol.

[0050] The microprocessor and control module 202 initializes the USB interface control module 202, reads the status of the storage disk selection switch 4, and determines whether it supports the floppy disk drive device class protocol such as the UFI, the SFF80801 protocol or the large capacity storage disk device protocol such as the SFF80701, the SCSI Transparent Command Set and the Reduce Block Commands (RBC) T10 Project 1240-D protocols based on the status of the switch 4.

[0051] The microprocessor and control module 202 have the similar functions with the above mentioned microprocessor and control module 22, such as initializing the flash memory module, detecting the capacity, the manufacturer and the quantity of the flash memory chips, etc. The microprocessor and control module 202 receives the standard control commands based on the USB protocol, interprets and executes the control commands and returns the results of the execution to the host system through USB interface. The standard USB commands include the following: GET_STATUS, CLEAR_FEATURE, SET_FEATURE, SET_ADDRESS, GET_DESCRIPTOR, SET_DESCRIPTOR, GET_CONFIGURATION, SET_CONFIGURATION, GET_INTERFACE, SET_INTERFACE, SYNCH_FRAME, etc., but be not restricted to them.

[0052] The embodiment as shown in FIG. 2 has two working statuses:

[0053] 1. The status of the simulated floppy disk drive and the floppy diskette

[0054] When the semiconductor storage device in the embodiment according to the present invention is in the status of the simulated floppy disk drive and floppy diskette, the device supports the floppy disk drive device class UFI(USB Floppy Interface) protocol. The microprocessor and control module 202 communicates with the host system through USB interface in conformity with the CBI (Control/Bulk/lnterrupt) transport protocol. According to the CBI protocol, the microprocessor and control module 202 unpacks the data packets received from the USB interface, extracts the floppy disk drive device class UFI commands from the unpacked data, then executes the related device class commands, packs the results of the execution or the status information according to the CBI protocol, and returns the results to the host system through the USB interface.

[0055] The device class commands related to the floppy disk drive include Format Unit, Inquiry, Start/Stop, Mode Select, Mode Sense, Prevent/Allow Media Removal, Read (10), Read (12), Read Capacity, Read Format Capacity, Request Sense, Rezero track, Seek (10), Send Diagnostic, Test Unit Ready, Verify, Write (10), Write (12), Write and Verify, etc., but not restricted to them.

[0056] The explanation of several principal commands used in the embodiment of the present invention will be described hereafter:

[0057] The inquiry command is used to inquire the related parameters and configuration information of the device, the host system or the driver program of the BIOS configure the device with the above related parameters and configuration information while the device is turned on or reset. The control module returns the configuration information of the device to the host computer according to the UFI protocol and sets the data bit for Peripheral Device Class in the configuration information as Direct-access device.

[0058] The Mode Sense command is used to permit the device to notify the storage media class and the device parameters to the host computer. There is one bit of Media Class Codes in the information notified to the host computer. The code is used to determine the capacity and class of the device. As the capacity of the simulated floppy diskette is 1.44MB, the defined code is 0×96 (hexadecimal).

[0059] The Read Capacity command is used to request the device to notify the capacity of the storage disk. The data returned from the device show that the total capacity is 1.44MB.

[0060] The Read Format Capacity command permits the host system to request the possible capacity of the storage disk to be formatted and only one answer from the device is 1.44MB.

[0061] The Test Unit Ready command permits the host system to test whether the device is ready, and the answer from the device is ready if it is in the ready status.

[0062] The Read 10 command is used to request the device to read data at a certain logical address in the storage disk and returns the read data to the host system. The control module then calculates the number of chips in which the logical address is located and the physical addresses in the chip based on the logical address and the capacities of various storage chips. Then it sends reading data command and address information to the flash memory, reads data from the flash memory, and sends the data to the host system. When the control module is reading and transmitting data, the LED indicator 5 flashes.

[0063] The write 10 is used to request the device to receive data from the host system, then write the received data at a certain logical address in the storage disk; the control module first detects the write protection switch, the control module refuses the write operation from the host computer and reports failure of write operation when the write protect switch is in write protecting status. When the switch is not in the write protect status, the control module calculates the chip number in which the logical address is located, the physical address and the block address in the chip based on the logical address and the capacities of various storage chips. When data are written into an address in the flash memory, the block containing the address should firstly be erased, thus the original data will be lost in the block; therefore, the data stored in the block address should be read out and written into the buffer module of the SRAM. Then, the data are written into the SRAM buffer module according to the relative address in the block. Next, the corresponding block in the flash memory is erased and the data block in the SRAM buffer module is written into the corresponding block of the flash memory, and the entire write operation is completed. The control module keeps the LED indicator 5 flashing when receiving and writing data.

[0064] The other working status of the embodiment as shown in FIG. 2 is described hereafter:

[0065] 2. The Status of the Large Capacity Storage Disk

[0066] The large capacity storage disk can be a simulated hard disk, a simulated CDROM, a simulated ZIP disk and a simulated MO disk, etc.

[0067] When the semiconductor storage device of the embodiment according to the present invention is in the working status of the large capacity storage disk, the device supports SFF80701 device class protocol, The microprocessor and control module 202 communicates with the host system through USB interface according to the BulkOnly transport protocol. The control module 202 unpack the data packet from the USB interface according to the BulkOnly transport protocol, extracts the SFF80701 class commands from the unpacked data, executes the corresponding commands, packs the results of the execution for the corresponding command, and sends them to the host system through USB interface. The SFF80701 class commands include Format Unit, Inquiry, Mode Select, Mode Sense, Prevent/Allow Media Removal, Read (10), Read (12), Read Capacity, Read Format Capacities, Request Sense, Seek, Start Stop Unit, Test Unit Ready, Verify, Write (10), Write (12), Write and Verify, etc.

[0068] The explanation of several principal commands used in the embodiment of the present invention will be described hereafter:

[0069] The Read Capacity command is used to request the host system to get the capacity of the storage disk of the device. The control module calculates the total capacity of the storage module according to the model and quantity of the flash memory chips detected. The capacity of the large capacity storage disk is obtained by subtracting a 1.44MB and the capacity occupied by other special information from the total capacity. The obtained capacity value is returned to the host system.

[0070] The Read 10 command is used to request the device to read data at a certain logical address in the storage disk and returns the read data to the host system. The control module firstly adds 1.44MB (floppy capacity) to the logical address, and calculates the number of the chips in where the logical address is located and the physical addresses in the chip based on the logical address and the capacities of various storage chips. Then it sends the read data command and address to the flash memory, reads data from the flash memory, and sends the data to the host system. When the control module is reading and transmitting data, the LED indicator 5 flashes.

[0071] The write 10 is used to request the device to receive data from the host system and writes the received data at a certain logical address in the storage disk; the control module firstly detects the write protection switch. The control module refuses the write operation from the host computer and reports failure of write operation when the write protection switch is in write protection status. If the switch is not in the write protection status, the control module first add 1.44MB of floppy capacity to the logical address, and calculates the chip number in where the logical address is located, and the physical address and the block address in the chip based on the logical address and the capacities of various storage chips. When data are written in an address in the flash memory, the block containing the address should firstly be erased, thus the original data will be lost in the block; therefore, the data stored in the block address should be read out and written into the buffer module of the SRAM. Then, the data are written into the SRAM buffer module according to the relative address in the block. Next, the corresponding block in the flash memory is erased and the data block in the SRAM buffer module is written into the corresponding block in the flash memory, and the entire write operation is completed. The control module keeps the LED indicator 5 flashing when receiving and writing data.

[0072] When the microprocessor and control module 22 establishes a connection with the host system, the LED indicator 5 is turned on.

[0073]FIG. 3 shows another embodiment of the semiconductor storage device of another embodiment according to the present invention. It is a block diagram of the hardware of the IEEE1394 interface and flash memory. In the embodiment, the general-purpose interface is an IEEE1394 interface and the semiconductor storage media is the flash memory. It includes a flash memory module 11, a controller module 200, a write protection switch 3, a storage disk selection switch 4, and a LED indicator 5.The controller module 200 includes an IEEE 1394 interface control module 211, a microprocessor and control module 212, and an SRAM buffer module 213.

[0074] The flash memory module 11 is formed with one or a plurality of semiconductor flash memory chips and is connected by the conventional addressing mode so as to store data.

[0075] The controller module 200 executes the initialization of the device, the control over the device, the initialization and the control of the IEEE1394 interface, the reception of the commands and data from the host system, the interpretation and the execution of the commands from the host system, writing data to the flash memory module 11 or reading data from the flash memory module and returning the results of the execution to the host system through the IEEE1394 interface.

[0076] The IEEE1394 interface control module 211 in the controller module establishes connection with the IEEE1394 interface of the host system, and handles the interpretation, conversion, control and transport of the IEEE1394 protocol.

[0077] The microprocessor and control module 212 initializes the IEEE1394 interface control module 211, reads the status of the storage disk selection switch 4 and thereby determines whether it supports the floppy disk drive device class protocol such as SFF80701, SCSI Transparent Command Set and Reduce Block Commands (RBC) T10 Project 1240-D protocols, but not restricted to them.

[0078] Further, the microprocessor and control module 212 also initializes the flash memory module, detects the capacity, the manufacturer and the quantity of the flash memory chips, etc. The microprocessor and control module 212 receives the standard control commands based on the IEEE1394 interface protocol, interprets and executes the control commands, and returns the results of execution for the commands to the host system through the IEEE1394 interface.

[0079] The embodiment as shown in FIG. 3 has two working statuses:

[0080] 1. The status of the simulated floppy disk drive and the floppy diskette

[0081] When the semiconductor storage device is in the status of the simulated floppy disk drive and floppy diskette, the device supports the floppy disk drive device class UFI protocol. The microprocessor and control module 212 receives the data from the USB interface, extracts the floppy disk drive device class UFI commands from the data packets, then executes the related device class commands, and returns the results to the host system through the USB interface.

[0082] The device class commands related to the floppy disk drive include Format Unit, Inquiry, Start/Stop, Mode Select, Mode Sense, Prevent/Allow Media Removal, Read (10), Read (12), Read Capacity, Read Format Capacity, Request Sense, Rezero track, Seek (10), Send Diagnostic, Test Unit Ready, Verify, Write (10), Write (12), Write and Verify, etc., but not restricted to them. The explanation of several principal commands used in the embodiment of the present invention will be described hereafter:

[0083] The inquiry command is used to inquire the related parameters and configuration information of the device, the host system or the driver program of the BIOS configure the device with the above related parameters and configuration information while the device is turned on or reset. The control module returns the configuration information of the device to the host computer according to the UFI protocol and sets the data bit for Peripheral Device Class in the configuration information as Direct-access device.

[0084] The Mode Sense command is used to permit the device to notify the storage media type and the device parameters to the host computer. There is one bit of Media Type Codes in the information notified to the host computer. The code is used to determine the capacity and type of the device. As the capacity of the simulated floppy diskette is 1.44MB, the defined code is 0×96 (hexadecimal).

[0085] The Read Capacity command is used to request the device to notify the capacity of the storage disk. The data returned from the device show that the total capacity is 1.44MB.

[0086] The Read Format Capacity command permits the host system to request the possible capacity of the storage disk to be formatted and only one answer from the device is 1.44MB.

[0087] The Test Unit Ready command permits the host system to test whether the device is ready, and the answer from the device is ready if it is in the ready status.

[0088] The Read 10 command is used to request the device to read data at a certain logical address in the storage disk and returns the read data to the host system. The control module then calculates the number of the chip in where the logical address is located and the physical addresses in the chip based on the logical address and the capacities of various storage chips. Then it sends the read data command and address information to the flash memory and reads data from the flash memory, and sends the data to the host system. When the control module is reading and transmitting data, the LED indicator 5 flashes.

[0089] The write 10 is used to request the device to receive data from the host system, then write the received data at a certain logical address in the storage disk. The control module first detects the write protection switch, and the control module refuses the write operation from the host computer and reports failure of write operation when the write protection switch is in write protection status. When the switch is not in the write protection status, the control module calculates the chip number in which the logical address is located, and the physical address and the block address in the chip based on the logical address and the capacities of various storage chips. When data are written into an address in the flash memory, the block containing the address should firstly be erased, thus the original data will be lost in the block; therefore, the data stored in the block address should be read out and written into the buffer module of the SRAM. Then, the data are written into the SRAM buffer module according to the relative address in the block. Next, the corresponding block of the flash memory is erased and the data block in the SRAM buffer module is written into the corresponding block in the flash memory, and the entire write operation is completed. The control module keeps the LED indicator 5 flashing when receiving and writing data. The other working status of the embodiment as shown in FIG. 3 is described hereafter:

[0090] 2. The Status of the Large Capacity Storage Disk

[0091] When the semiconductor storage device of the embodiment is in the working status of the large capacity storage disk, the device supports SFF80701 device class protocol. The microprocessor and control module 212 extracts the SFF80701 type commands from the received data through IEEE1394 interface, executes the related command, sends the result of the execution or a status information to the host system through IEEE1394 interface. The SFF80701 class commands include Format Unit, Inquiry, Mode Select, Mode Sense, Prevent/Allow Media Removal, Read (10), Read (12), Read Capacity, Read Format Capacities, Request Sense, Seek, Start Stop Unit, Test Unit Ready, Verify, Write (10), Write (12), Write and Verify, etc., but not restricted to them.

[0092] The explanation of several principal commands used in the embodiment of the present invention will be described hereafter:

[0093] The Read Capacity command is used to request the host system to get the capacity of the storage disk of the device. The control module calculates the total capacity of the storage module according to the model and quantity of the flash memory chips detected. The capacity of the large capacity storage disk is obtained by subtracting 1.44MB and the capacity occupied by other special information from the general (total) capacity. The obtained capacity value is returned to the host system.

[0094] The Read 10 command is used to request the device to read data at a certain logical address in the storage disk and returns the read data to the host system. The control module firstly adds 1.44MB (floppy capacity) to the logical address, and calculates the number of chips in which the logical address is located and the physical addresses in the chip based on the logical address and the capacities of various storage chips. Then it sends the read data command and address information to the flash memory and reads data from the flash memory, and sends the data to the host system. When the control module is reading and transmitting data, the LED indicator 5 flashes.

[0095] The write 10 is used to request the device to receive data from the host system, then write the received data at a certain logical address in the storage disk; the control module firstly detects the write protection switch. The control module refuses the write operation from the host computer and reports failure of write operation when the write protection switch is in write protection status. If the switch is not in the write protection status, the control module first add 1.44MB of floppy capacity to the logical address, and calculates the chip number in which the logical address is located, and the physical address and the block address in the chip based on the logical address and the capacities of various storage chips. When data are written into an address of the flash memory, the block containing the address should firstly be erased, thus the original data will be lost in the block; therefore, the data stored in the block address should be read out and written into the buffer module of the SRAM. Then, the data are written into the SRAM buffer module according to the relative address in the block. Next, the corresponding block in the flash memory is erased and the data block in the SRAM buffer module is written into the corresponding block of the flash memory, and the entire write operation is completed. The control module keeps the LED indicator 5 flashing when receiving and writing data.

[0096] When the microprocessor and control module 212 establishes a connection with the host system, the LED indicator 5 is turned on. FIG. 4 shows the allocation of the storage spaces of the semiconductor storage module. The entire storage module includes N storage spaces with each corresponding to one storage disk. Alternatively, the storage module can contain a data buffer area or not, and can contain a special information area for the entire storage device or not. Each of the storage spaces includes a data area and a special information area. Alternatively, each of the storage spaces may not include the special information area. The data buffer area functions as the buffer module 23 (see FIG. 1). The entire special information area of the storage device can be used to store information about the storage device, such as the record of the bad blocks of the flash memory, the passwords and the digital signatures of the users, etc., but not restricted to them.

[0097]FIG. 5 is a working flow chart of the device of the embodiment in FIG. 2.

[0098] In step 1, it establishes connection with the USB interface of the host system from where it acquires electrical power. At this time, the microprocessor and control module 202 firstly initializes the microprocessor and control module 202, including the setting of the different registers and of the operation frequencies.

[0099] In step 2, the microprocessor and control module 202 detects the storage module of the flash memory and obtains the model, capacity, manufacturer and total number of the storage chips and saves the results of the detection.

[0100] In step 3, the microprocessor and control module 202 reads the special information of the storage device, in which the bad block table is included but not restricted it.

[0101] In step 4, the microprocessor and control module 202 initializes the USB interface controller.

[0102] In step 5, the microprocessor and control module 202 receives the USB control commands from the host system and executes related commands and returns the results of execution. When the request device description command is executed, the control module detects the “floppy disk drive” and “large capacity storage disk” status switch and determines which status the device is in, that is, which device class protocol and transport protocol are supported by the device. The control module then informs to the host computer the device class protocol and transport protocol supported by the device. When it is in the “floppy disk drive” status, the device supports the UFI device class protocol and the CBI transport protocol, and when it is in the “large capacity storage disk” status, the device supports the SFF80701 device class protocol and the BulkOnly protocol.

[0103] In step 6, the host computer determines whether the storage device is a “floppy disk drive” or a “large capacity storage disk” based on the returned device class protocol and transport protocol. If the device is in the “floppy disk drive” status, the host computer then sends UFI class device commands to the device based on the CBI transport protocol in step 7, and if the device is in the “large capacity storage disk”, the host computer then sends SFF80701 type device commands to the device based on the BulkOnly transport protocol in step 9. If the device is in the “floppy disk drive” status, the control module then receives UFI class commands from the host system according to the CBI transport protocol, interprets and executes the related commands, and returns the results of the executing or the status message to the host system in the format of the CBI transport protocol in step 8. And if the device is in the status of “large capacity storage disk”, the control module then receives the SFF80701 class commands from the host system according to the BulkOnly transport protocol, interprets and executes the related commands, and sends the results of the executing or the status message to the host system in the format of the BulkOnly transport protocol in step 10.

[0104] Once the power of the host computer is off or the device is removed from the host system, the device stops working.

[0105] A description of the Use of the embodiment in FIG. 2 as the system boot disk

[0106] The following is a description of the system boot disk using the USB interface flash memory device based on Window 98/Me/200/XP operating systems. It is noted that the device can not only be used as the system boot disk for Window98/Me/2000/XP, but also suitable for other operating systems.

[0107] When the device is used as the system boot disk, the boot program and the system programs of the operating system should firstly be stored in the device. Here is a description about how to make a system boot disk.

[0108] 1. Start Windows98/Me/2000/XP operating systems;

[0109] 2. Set the storage disk status switch to “floppy disk drive”;

[0110] 3. Connect the device to the USB port of the host system;

[0111] 4. The related device driver program in the operating system will recognize and operate the storage disk and a new icon and characters “floppy disk drive” will appear in the icon “My Computer”. It is noted that the device driver program provided by the manufacturer should be used if the system is Windows98, while under Windows Me/2000/XP , default device driver programs contained in the operating system can be used;

[0112] 5. Format the floppy disk as a system boot disk and copy the corresponding files to the floppy disk, i.e., the system boot disk is produced.

[0113] When the making of the system boot disk is finished, the device can be used as the disk to boot the system. The following is a description about how to use the boot disk.

[0114] The use of the boot disk

[0115] 1. Turn on the power of the host computer.

[0116] 2. Enter the BIOS setting of the system and check the “bootable system device” item. If it is not set as the USB Floppy Disk Drive, that is, the USB external floppy disk (the initial setting of the system may be a Legacy Floppy), then it is modified to USB Floppy Disk Drive. Saving the modified setting to the BIOS and exiting from the setting of the BIOS and restart the host computer machine.

[0117] 3. Meanwhile, put the storage disk status switch of the device to a status “floppy disk drive” and connects the device to the USB port of the host computer machine.

[0118] 4. In the booting process of the host system, BIOS will recognize the storage disk and reads the operating system boot program and the system programs stored on the storage device. Then the corresponding programs are executed and the operating system is loaded.

[0119] 5. The booting of the system is completed.

[0120] A description of the use of the embodiment in FIG. 2 as a large capacity storage disk

[0121] The following is a description of the USB interface flash memory storage device used as a large capacity storage disk based on Windows 98/Me/2000/XP operating system. It is noted that the device can not only run for Windows 98/Me/2000/XP as a large capacity disk but also suitable for other operating systems as a large capacity disk.

[0122] 1. Start Windows98/Me/2000/XP operating systems.

[0123] 2. Set the storage disk status switch to the status at “large capacity disk”.

[0124] 3. Connect the device to the USB port of the host system.

[0125] 4. The related device driver program in the operating system will recognize and operate the storage disk and a new icon and characters “removable disk” will appear in the icon “My Computer”. It is noted that the device driver program provided by the manufacturer should be used if the operating system is Windows98, while the operating system is one of Windows Me/2000/XP, the default device driver programs contained the operating system can be used.

[0126] 5. From now on reading and writing operations of the files can be carried on the large capacity disk. 

1. A multifunction semiconductor storage device capable of hot plug and play and being removable connected to the host system through the general purpose interface, including a semiconductor storage media module (1) and a controller module (2), wherein the controller module (2) comprises a general purpose interface control module (21), a microprocessor and control module (22), said semiconductor storage device can realize the device class protocol of the floppy disk drive, simulate and implement the storing function of the floppy diskette working on the floppy disk drive, or realize the device class protocol of the CD-ROM drive, simulate and implement the storing function of the CD-ROM working on the CD-ROM drive, or realize the device class protocol of the ZIP disk, simulate and implement the storing function of the ZIP disk, or realize the device class protocol of the MO disk, simulate and implement the storing function of the MO disk.
 2. A multifunction semiconductor storage device as claimed in claim 1, wherein the semiconductor storage media module (1) corresponds to a storage space or can be divided into at least two storage spaces.
 3. A multifunction semiconductor storage device as claimed in claim 1, wherein it can be recognized, controlled and accessed by the BIOS (Basic Input and Output System) of the host computer, the semiconductor storage media module (1) stores the boot up program of the operating system and operating system programs, while the BIOS of the host computer is powered up, the boot up program of the operating system and operating system programs are loaded from the semiconductor storage media module (1) so as to boot the host computer.
 4. A multifunction semiconductor storage device as claimed in claim 1, wherein the driver programs of the semiconductor storage device can be stored in the semiconductor storage media module (1) so as to realize the function of storing the driver program in itself.
 5. A multifunction semiconductor storage device as claimed in claim 1, wherein further includes a write protect switch (3) capable of offering physical protection to said semiconductor storage media module (1) so as to prevent the contents from being overwritten or erased, said write protect switch (3) is electrically connected to said microprocessor and control module (22).
 6. A multifunction semiconductor storage device as claimed in claim 1, wherein further includes a LED indicator (5) comprising one or a plurality of indicator devices which can show the status of the semiconductor storage device, said LED power indicator (5) is electrically connected to the microprocessor and control module (22) electrically.
 7. A multifunction semiconductor storage device as claimed in claim 1, wherein said controller module (2) further includes a buffer module (23), said buffer module (23) is a static random access memory (SRAM) and is electrically connected to the microprocessor and control module (22).
 8. A multifunction semiconductor storage device as claimed in claim 1, wherein said semiconductor storage media module (1) has a buffer area.
 9. A multifunction semiconductor storage device as claimed in claim 1, wherein said semiconductor storage media module (1) has a special information area for storing the information relevant to said semiconductor storage device, the password and the digital signature of the user.
 10. A multifunction semiconductor storage device as claimed in claim 2, wherein each of the storage spaces of said semiconductor storage media module (1) corresponds to a storage disk.
 11. A multifunction semiconductor storage device as claimed in claim 10, wherein said storage disk can be a simulated floppy disk drive and floppy diskette, a simulated CD-ROM drive and a CD-ROM, a simulated hard disk, a simulate ZIP disk, a simulated MO disk, or a customized storage disk.
 12. A multifunction semiconductor storage device as claimed in claim 10, wherein further includes a storage disk selection switch (4) for selecting at least one storage disk from all storage disks, so that the selected storage disk can be recognized, controlled and accessed by the host computer.
 13. A multifunction semiconductor storage device as claimed in claim 10, wherein said storage disk supports the device class protocols such as UFI (USB Floppy Interface) protocol, SFF80201 protocol, SFF80701 protocol, SCSI Transparent Command Set protocol, Reduced Block Commands (RBC) T10 Project1240-D protocol, ZIP disk protocol and MO disk protocol.
 14. A multifunction semiconductor storage device as claimed in claim 10, wherein each of the storage disks can be divided into smaller storage spaces including the data area and the special information area, the special information contained in said special information area includes information related to the storage disk, the password and the digital signature of the user.
 15. A method for booting up computer using the multifunction semiconductor storage device, comprising the steps of: storing the boot program of the operating system and operating system programs into the multifunction semiconductor storage device; connecting the multifunction semiconductor storage device with the computer host system through the general-purpose interface; identifying the general purpose interface, and controlling and reading/writing the multifunction semiconductor storage device based on BIOS after powered up the computer host system; and loading the boot program of the operating system and operating system programs stored in the multifunction semiconductor storage device to computer host system for achieving computer boot-up. 